package com.ycsyxt.controller;

import com.ycsyxt.entity.LoginUser;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ycs(15241496739 @ 163.com)
 * @date 2022/4/17
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("hello")
    public String hello() {
        return "hello security";
    }

    @PostMapping("add")
    public String add(@RequestBody LoginUser user) {
        return "add success!";
    }
}
